'use strict';

angular.module('myApp.version.interpolate-filter', [])

.filter('interpolate', ['version', function(version) {
  return function(text) {
    return String(text).replace(/\%VERSION\%/mg, version);
  };
}])
.filter('interpolate1', ['version1', function(version1) {
  return function(text) {
    return String(text).replace(/\%VERSION\%/mg, version1);
  };
}])
.filter('interpolate2', ['version1', function(version1) {
  return function(value1, value2) {
  	// console.log(value1)
  	// console.log(value2)
    return value1 +　value2;
  };
}]);
